<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>04_模板解析_事件指令</title>
  </head>
  <body>
    <div id="app">
      <p>{{count}}</p>
      <button v-on:click="handleClick">update</button>
    </div>
    <script src="./js/mvvm.js"></script>
    <script src="./js/compile.js"></script>
    <script src="./js/observer.js"></script>
    <script src="./js/watcher.js"></script>
    <script>
     
      new MVVM({
        el: "#app",
        data: {
          count: 0,
        },
        methods: {
          handleClick() {
            this.count++;
          },
        },
      });
    </script>
  </body>
</html>
